package cn.xn.hrms.api.dto.req;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: ysz
 * @date: 2023/08/08
 **/
@Data
public class UserRoleReqDTO {

    @NotNull(message = "userId 不能为空")
    private Integer userId;

    @NotEmpty(message = "角色不能为空")
    private List<Long> roleIds;
}
